// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import routes from './router'
import store from './store/'
import './assets/css/base.css'
import { Slider } from 'vant';
import { CountDown } from 'vant';

Vue.config.productionTip = false

VueRouter.prototype.goBack = function () {
  	this.isBack = true
  	window.history.go(-1)
}
Vue.use(VueRouter)
Vue.use(Slider);
Vue.use(CountDown);

const router = new VueRouter({
	routes
})

new Vue({
	el: '#app',
	router,
	store,
	components: { App },
    template: '<App/>'
})